async function add() {
    let info = await uploadAjaxPost("/product/add",{
        productName: $("name").value,
        productPrice: $("price").value,
        productAddress: $("address").value,
        productTime: $("time").value,
        file:$("img").files[0]
    });
    if(info == "ok"){
        location.href = "/html/leader/index.html"
    }else {
        alert("添加失败，请重试")
    }
}